<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

abstract class Request extends FormRequest
{
    public function all() {
        return array_replace_recursive($this->input(), $this->allFiles(), $this->request->all());
    }


    protected function validationData() {
        $data = $this->all();
        if (empty($data)) {
            $data = $this->request->all();
        }
        return $data;
    }
}
